{% extends './web/common/common-user.html' %}
{% block main %}
<div class="main-box">
    <div class="main-404">
        <img src="/public/images/404.gif">
        <p>404啦啦啦... <span class="second">3</span> 秒钟后回到<a href="/">首页！</a></p>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        timeOut();
        /**
         * 实现倒计时
         */
        function timeOut() {
            var wait = 3;
            $('.second').html(wait);
            setInterval(function() {
                wait--;
                $('.second').text(wait);
                if(wait == 0){
                    window.document.location.href="/";
                }
            }, 1000);
        }
    });
</script>
{% endblock %}
